﻿using CRM.Admin.Contracts.Dto.Customer;
using CRM.Admin.Contracts.Model.Customer;
using KingsSharp.Common.Data;
using KingsSharp.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CRM.Admin.Contracts.Contract.Customer
{
     public  interface IVarietyYearService: IDependency
    {
        /// <summary>
        /// 品种需求明细集合
        /// </summary>
        IQueryable<VarietyYear> VarietyYears { get; }

        /// <summary>
        /// 新增品种需求
        /// </summary>
        /// <param name="dtos">品种需求信息dto</param>
        /// <returns></returns>
        OperationResult Insert(params VarietyYearDto[] dtos);


        /// <summary>
        /// 编辑品种需求明细
        /// </summary>
        /// <param name="dtos">品种需求明细信息dto</param>
        /// <returns></returns>
        OperationResult Update(params VarietyYearDto[] dtos);

        /// <summary>
        /// 删除品种需求
        /// </summary>
        /// <param name="ids">要删除的主键数组</param>
        /// <returns></returns>
        OperationResult Delete(params Guid[] ids);
    }
}
